package live.ifox.factory;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class UpdateInfo {
    private List<Map<String, Object>> infoModel;

    public UpdateInfo() {
        infoModel = new ArrayList<>();
    }

    private void addItem(String label, Object detail) {
        Map<String, Object> map = new HashMap<>();
        map.put("label", label);
        map.put("detail", detail);
        infoModel.add(map);
    }

    public List<Map<String, Object>> getModel() {
        addItem("1002", "基本功能");
        addItem("1003", "Parlor增加长按复制功能");
        addItem("1004", "BaseRestActivity");
        addItem("1005", "长按弹出菜单");
        addItem("1006", "组件统一为StageViewActivity");
        addItem("1007", "自动切换Title");
        addItem("1008", "提交后自动更新，startActivityForResult");
        addItem("1009", "LoginActivity");
        addItem("1010", "AboutActivity");
        addItem("1011", "AccountEditor");
        addItem("1012", "删除功能");
        addItem("1013", "CodeScanner");
        addItem("1014", "webView，journal");
        addItem("1015", "PositionEditor，JournalEditor");
        addItem("1016", "修正了Switch未处理的bug，所有人都能看到日志，但只有管理员以上能编辑");
        addItem("1017", "包名改变，返回为空时，listView也为空");
        addItem("1018", "分离出AssembleFlow和PurchaseLog");
        addItem("1019", "增加了直接登录的功能");
        addItem("1020", "统一更新信息，UpdateInfo和ChangeLogActivity");
        addItem("1021","Position 取消了权限限制");
        addItem("1022","简化结构，去除登录");
        Collections.reverse(infoModel);
        return infoModel;
    }
}

